Add support of specifying multiple inventory files#1645
Merged
wangxin merged 1 commit intosonic-net:masterfrom May 7, 2020
wangxin:multi-inv-pr
Merged
Add support of specifying multiple inventory files#1645wangxin merged 1 commit intosonic-net:masterfrom wangxin:multi-inv-pr
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:multi-inv-pr
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes # (issue)
The pytest-ansible plugin always assumes that the value
of cli argument '--inventory' is a single inventory file.
With this enhancement, we can pass in multiple inventory
files using the cli argument '--inventory'. The multiple
inventory files can be separated by comma ','.
For example:
pytest --inventory "inventory1, inventory2"
pytest --inventory inventory1,inventory2
This PR is an alternative approach to fix the issue addressed by PR #1594
Type of change
Approach
How did you do it?
Added an auto used fixture to enhance the capability of interpreting the value of pytest cli argument '--inventory'.
How did you verify/test it?
Run test scripts that depends on multiple inventory files by specifying multiple inventory files from command line:
Any platform specific information?
NA
Supported testbed topology if it's a new test case?
NA
Documentation